#include <QtGui/QApplication>
#include "MefoolQDeviceManagerWidget.h"
#include "MefoolDeviceManager.h"
#include <windows.h>

//int main(int argc, char *argv[])
int WINAPI WinMain(      
    HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpCmdLine,
    int nCmdShow
)
{		
	int argc = 0;
	char** argv = NULL;
	QApplication* l_App = new QApplication( argc, argv );

	Mefool::DeviceManager* deviceManager = new Mefool::DeviceManager();
	Mefool::MefoolQDeviceManagerWidget* mainWindow = new Mefool::MefoolQDeviceManagerWidget(NULL, deviceManager);
	mainWindow->resize(320, 480);
	mainWindow->show();

	int ret = l_App->exec();

	delete mainWindow;
	mainWindow = NULL;

	delete deviceManager;
	deviceManager = NULL;

	return ret;
}